<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
        <html><head>
        <link rel="stylesheet" type="text/css" href="apidocs.css"/>
        <title>API docs for &ldquo;sympy.plotting.managed_window.ManagedWindow&rdquo;</title>
        </head>
        <body><h1 class="class">Class s.p.m.ManagedWindow(Window):</h1><span id="part">Part of <a href="sympy.plotting.managed_window.html">sympy.plotting.managed_window</a></span><p>known subclasses: <a href="sympy.plotting.plot_window.PlotWindow.html">sympy.plotting.plot_window.PlotWindow</a></p><div class="toplevel"><div><p>A pyglet window with an event loop which executes automatically in a 
separate thread. Behavior is added by creating a subclass which overrides 
setup, update, and/or draw.</p>
</div></div><table class="children"><tr class="function"><td>Function</td><td><a href="#sympy.plotting.managed_window.ManagedWindow.__init__">__init__</a></td><td><div><p>It is best not to override this function in the child</p>
</div></td></tr><tr class="function"><td>Function</td><td><a href="#sympy.plotting.managed_window.ManagedWindow.__event_loop__">__event_loop__</a></td><td><div><p>The event loop thread function. Do not override or call</p>
</div></td></tr><tr class="function"><td>Function</td><td><a href="#sympy.plotting.managed_window.ManagedWindow.close">close</a></td><td><div><p>Closes the window.</p>
</div></td></tr><tr class="function"><td>Function</td><td><a href="#sympy.plotting.managed_window.ManagedWindow.setup">setup</a></td><td><div><p>Called once before the event loop begins.</p>
</div></td></tr><tr class="function"><td>Function</td><td><a href="#sympy.plotting.managed_window.ManagedWindow.update">update</a></td><td><div><p>Called before draw during each iteration of</p>
</div></td></tr><tr class="function"><td>Function</td><td><a href="#sympy.plotting.managed_window.ManagedWindow.draw">draw</a></td><td><div><p>Called after update during each iteration of</p>
</div></td></tr></table>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.plotting.managed_window.ManagedWindow.__init__">__init__(self, **win_args):</a></div>
            <div class="functionBody"><div><p>It is best not to override this function in the child class, unless you 
need to take additional arguments. Do any OpenGL initialization calls in 
setup().</p>
</div></div>
            </div>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.plotting.managed_window.ManagedWindow.__event_loop__">__event_loop__(self, **win_args):</a></div>
            <div class="functionBody"><div><p>The event loop thread function. Do not override or call directly (it is 
called by __init__).</p>
</div></div>
            </div>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.plotting.managed_window.ManagedWindow.close">close(self):</a></div>
            <div class="functionBody"><div><p>Closes the window.</p>
</div></div>
            </div>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.plotting.managed_window.ManagedWindow.setup">setup(self):</a></div>
            <div class="functionBody"><div><p>Called once before the event loop begins. Override this method in a 
child class. This is the best place to put things like OpenGL 
initialization calls.</p>
</div></div>
            </div>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.plotting.managed_window.ManagedWindow.update">update(self, dt):</a></div>
            <div class="functionBody"><div><p>Called before draw during each iteration of the event loop. dt is the 
elapsed time in seconds since the last update. OpenGL rendering calls are 
best put in draw() rather than here.</p>
</div></div>
            </div>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.plotting.managed_window.ManagedWindow.draw">draw(self):</a></div>
            <div class="functionBody"><div><p>Called after update during each iteration of the event loop. Put OpenGL 
rendering calls here.</p>
</div></div>
            </div></body>
        